package com.binance.notification.data.mapper;

import java.util.List;
import java.util.Map;

import com.binance.master.annotations.DefaultDB;
import com.binance.notification.data.models.AbnormalTradeNoticeLogModel;

@DefaultDB
public interface AbnormalTradeNoticeLogMapper {

    AbnormalTradeNoticeLogModel selectByPrimaryKey(String id);

    int deleteByPrimaryKey(String id);

    int insert(AbnormalTradeNoticeLogModel abnormalTradeNoticeLogModel);

    int insertSelective(AbnormalTradeNoticeLogModel abnormalTradeNoticeLogModel);

    int updateByPrimaryKeySelective(AbnormalTradeNoticeLogModel abnormalTradeNoticeLogModel);

    int updateByPrimaryKey(AbnormalTradeNoticeLogModel abnormalTradeNoticeLogModel);

//    List<AbnormalTradeNoticeLogModel> findBySymbolAndBusinessType(Map<String, Object> param);

    AbnormalTradeNoticeLogModel findBySymbolAndBusinessTypeAndDescCode(Map<String, Object> param);

    List<AbnormalTradeNoticeLogModel> findByBusinessType(Map<String, Object> param);

    int insertOnDuplicateKeyUpdate(AbnormalTradeNoticeLogModel abnormalTradeNoticeLogModel);
}
